﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using LeadThing.AbpZeroTemplate.WorkFlow_TableNames.Dtos;
using LeadThing.AbpZeroTemplate.Dto;

namespace LeadThing.AbpZeroTemplate.WorkFlow_TableNames
{
    /// <summary>
    /// 业务审批与流程关联表服务接口
    /// </summary>
    public interface IWorkFlow_TableNameAppService : IApplicationService
    {
        #region 扩展方法

        /// <summary>
        /// 获取所有业务审批与流程关联表数据
        /// </summary>
        /// <returns></returns>
        Task<ListResultDto<WorkFlow_TableNameListDto>> GetAllWorkFlowTableNameListAsync();

        #endregion

        #region 业务审批与流程关联表管理

        /// <summary>
        /// 根据查询条件获取业务审批与流程关联表分页列表
        /// </summary>
        Task<PagedResultDto<WorkFlow_TableNameListDto>> GetPagedWorkFlow_TableNamesAsync(GetWorkFlow_TableNameInput input);

        /// <summary>
        /// 通过Id获取业务审批与流程关联表信息进行编辑或修改 
        /// </summary>
        Task<GetWorkFlow_TableNameForEditOutput> GetWorkFlow_TableNameForEditAsync(NullableIdDto<long> input);

        /// <summary>
        /// 通过指定id获取业务审批与流程关联表ListDto信息
        /// </summary>
        Task<WorkFlow_TableNameListDto> GetWorkFlow_TableNameByIdAsync(EntityDto<long> input);



        /// <summary>
        /// 新增或更改业务审批与流程关联表
        /// </summary>
        Task CreateOrUpdateWorkFlow_TableNameAsync(CreateOrUpdateWorkFlow_TableNameInput input);





        /// <summary>
        /// 新增业务审批与流程关联表
        /// </summary>
        Task<WorkFlow_TableNameEditDto> CreateWorkFlow_TableNameAsync(WorkFlow_TableNameEditDto input);

        /// <summary>
        /// 更新业务审批与流程关联表
        /// </summary>
        Task UpdateWorkFlow_TableNameAsync(WorkFlow_TableNameEditDto input);

        /// <summary>
        /// 删除业务审批与流程关联表
        /// </summary>
        Task DeleteWorkFlow_TableNameAsync(EntityDto<long> input);

        /// <summary>
        /// 批量删除业务审批与流程关联表
        /// </summary>
        Task BatchDeleteWorkFlow_TableNameAsync(List<long> input);

        #endregion

        #region Excel导出功能

        /// <summary>
        /// 获取业务审批与流程关联表信息转换为Excel
        /// </summary>
        /// <returns></returns>
        Task<FileDto> GetWorkFlow_TableNameToExcel();

        #endregion

    }
}
